package com.woniuxy.controller;

import com.woniuxy.entity.User;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author：向天浩
 * @Date：2022/1/25 15:42
 * @Description :TODO
 */
@RestController
@RequestMapping("/JSON")
public class JSON {

    @RequestMapping("/add")
    public User addUser(@RequestBody User user) {
        System.out.println(user);
        return user;
    }

}
